Extension point caches
In component org.nuxeo.ecm.core.cache.CacheService
Documentation
Extension Point to define a new cache . 20m
The class attribute may specify a class that implements the CacheManagement interface. The default implementation 'org.nuxeo.ecm.core.cache.InMemoryCacheImpl' is based on Google Guava.
The max size set the max number of elements contained in the cache
The Time To Live accepts a Duration format (e.g. 20m, 2h, PT30S) or, for backward compatibility, a plain number interpreted as a number of minutes
The concurrency level, number of thread that can access at the same time the cache
Contribution Descriptors
- Class: org.nuxeo.ecm.core.cache.CacheDescriptor
Existing Contributions
Contributions are presented in the same order as the registration order on this extension point. This order is displayed before the contribution name, in brackets.
-
<extension point="caches" target="org.nuxeo.ecm.core.cache.CacheService"> <cache copy="default-cache" name="user-entry-cache"/> <cache copy="default-cache" name="user-entry-cache-without-references"/> <cache copy="default-cache" name="group-entry-cache"/> <cache copy="default-cache" name="group-entry-cache-without-references"/> <cache copy="default-cache" name="digestauth-entry-cache"/> <cache copy="default-cache" name="digestauth-entry-cache-without-references"/> </extension> -
<extension point="caches" target="org.nuxeo.ecm.core.cache.CacheService"> <cache name="default-cache"> <ttl>20m</ttl> <option name="maxSize">10000</option> <option name="concurrencyLevel">500</option> </cache> </extension> -
<extension point="caches" target="org.nuxeo.ecm.core.cache.CacheService"> <cache name="box"> <option name="maxSize">1000</option> <option name="concurrencyLevel">10</option> <ttl>1h</ttl> </cache> </extension> -
<extension point="caches" target="org.nuxeo.ecm.core.cache.CacheService"> <cache name="googleDrive"> <option name="maxSize">1000</option> <option name="concurrencyLevel">10</option> <ttl>1h</ttl> </cache> </extension> -
<extension point="caches" target="org.nuxeo.ecm.core.cache.CacheService"> <cache name="multi-tenant-default-cache"> <ttl>1h</ttl> <option name="maxSize">1000</option> </cache> <cache copy="multi-tenant-default-cache" name="tenants-cache"/> <cache copy="multi-tenant-default-cache" name="tenants-cache-without-ref"/> <cache copy="multi-tenant-default-cache" name="topic-cache-without-ref"/> <cache copy="multi-tenant-default-cache" name="topic-cache"/> <cache copy="multi-tenant-default-cache" name="subtopic-cache-without-ref"/> <cache copy="multi-tenant-default-cache" name="subtopic-cache"/> <cache copy="multi-tenant-default-cache" name="l10nsubjects-cache-without-ref"/> <cache copy="multi-tenant-default-cache" name="l10nsubjects-cache"/> <cache copy="multi-tenant-default-cache" name="l10ncoverage-cache-without-ref"/> <cache copy="multi-tenant-default-cache" name="l10ncoverage-cache"/> </extension> -
<extension point="caches" target="org.nuxeo.ecm.core.cache.CacheService"> <cache name="vocabulary-default-cache"> <ttl>1h</ttl> <option name="maxSize">1000</option> <option name="concurrencyLevel">10</option> </cache> <cache copy="vocabulary-default-cache" name="cache-vocabulary"/> <cache copy="vocabulary-default-cache" name="cache-xvocabulary"/> <cache copy="vocabulary-default-cache" name="cache-l10nxvocabulary"/> <cache copy="vocabulary-default-cache" name="cache-documentsLists"/> </extension> -
<extension point="caches" target="org.nuxeo.ecm.core.cache.CacheService"> <cache name="authTokens-entry-cache"> <ttl>5m</ttl> <option name="maxSize">1000</option> <option name="concurrencyLevel">10</option> </cache> <cache copy="authTokens-entry-cache" name="authTokens-entry-cache-noref"/> </extension> -
<extension point="caches" target="org.nuxeo.ecm.core.cache.CacheService"> <cache name="workflowModels"> <ttl>10m</ttl> <option name="maxSize">100</option> </cache> </extension> -
<extension point="caches" target="org.nuxeo.ecm.core.cache.CacheService"> <cache name="vocab-WorkflowType-cache"> <option name="maxSize">1000</option> <option name="concurrencyLevel">500</option> <ttl>1h</ttl> </cache> <cache name="vocab-WorkflowType-cache-without-references"> <option name="maxSize">1000</option> <option name="concurrencyLevel">500</option> <ttl>1h</ttl> </cache> </extension> -
<extension point="caches" target="org.nuxeo.ecm.core.cache.CacheService"> <cache name="webUIAnnouncement-entry-cache"> <ttl>10</ttl> <option name="maxSize">1</option> <option name="concurrencyLevel">10</option> </cache> <cache name="webUIAnnouncement-entry-cache-without-references"> <ttl>10</ttl> <option name="maxSize">1</option> <option name="concurrencyLevel">10</option> </cache> </extension>